# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=nmon
pkgver=16p
pkgrel=1
pkgdesc="AIX & Linux Performance Monitoring tool"
arch=('loong64' 'x86_64')
url="http://nmon.sourceforge.net"
license=('GPL')
depends=('ncurses')
source=("https://downloads.sourceforge.net/$pkgname/nmon$pkgver.c")
sha256sums=('5dc6045f6725e3249a969918fae69663a1d669162087720babcdb90fce9e6b2a')

build() {
  cd "$srcdir"
  cc -o nmon nmon$pkgver.c $LDFLAGS $CFLAGS -g -O3 -lncurses -lm -D X86
}

package() {
  cd "$srcdir"
  install -D -m 0755 nmon "$pkgdir/usr/bin/nmon"
}
